package com.wwwc.index.ejb.category;

import java.util.ArrayList;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface Category extends EJBObject {
    public ArrayList getCategoryList(int level) throws RemoteException;
    public int categoryTableExists() throws RemoteException;
    public int createCategoryTable() throws RemoteException;
    public int insertCategoryDefaultValue () throws RemoteException;
    public int addNewCategory (String cid, String cname, String access_level) throws RemoteException;
    public int updateCategory (String cid, String cname, String access_level) throws RemoteException;
    public int deleteCategory (String cid) throws RemoteException;
    public int setDefaultCategory (String cid) throws RemoteException;
    public void dropCategoryTable () throws RemoteException;
}
